package cn.aylog;

import cn.aylog.service.IUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:beans.xml");
        IUserService bean = context.getBean(IUserService.class);
        bean.getUser(12);
    }
}
